package com.study.gulimall.member.feign;

import com.study.common.ApplicationNameConstant;
import com.study.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 申明该接口是openFeign接口远程调用优惠券服务
 */
@FeignClient(value = ApplicationNameConstant.COUPON_SERVICE_NAME)
public interface CouponFeignService {

    /**
     * 远程调用优惠券服务，获取所有优惠券
     * @return R
     */
    @RequestMapping("/coupon/coupon/member/list")
    R getCouponList();

}
